package com.baturu.mybatisminus.util;

import java.util.ArrayList;
import java.util.Collections;


public class Lists {

    public static <E> ArrayList<E> newArrayList(E... elements) {
        if(elements == null || elements.length == 0) {
            return new ArrayList<>();
        }
        ArrayList<E> list = new ArrayList<E>(elements.length);
        Collections.addAll(list, elements);
        return list;
    }
}
